package org.lw.ssm.service;


import org.lw.ssm.Entity.Department;

import java.util.List;
import java.util.Optional;

public interface DepartmentService {
    // 根据ID获取部门信息，并加载该部门的员工列表
    Department getDepartmentById(Long id);
    Optional<Department> getOptionalDepartmentById(Long id);

    // 获取所有部门
    List<Department> getAllDepartments();

    // 创建新的部门
    void createDepartment(Department department);

    // 更新部门信息
    void updateDepartment(Department department);

    // 删除部门
    void deleteDepartment(Long id);
}

